import cplex
import random
import sys
from time import time

f1 = sys.argv[1]
f2 = sys.argv[2]

c = cplex.Cplex()
c.parameters.read_file("../../param/stofac.prm")

c.read(f1)
t0 = time()
c.solve()
t1 = time()
print "time is ", t1 - t0
print "solution is", c.solution.get_objective_value()
print "nodes is ",   c.solution.progress.get_num_nodes_processed()
print

c.read(f2)
t0 = time()
c.solve()
t1 = time()
print "time is ", t1 - t0
print "solution is", c.solution.get_objective_value()
print "nodes is ",   c.solution.progress.get_num_nodes_processed()
